<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>供应商后台管理</title>
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <!-- <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="css/font.css"> -->
    <link rel="stylesheet" href="/static/lib/xadmin.css">
    <link rel="stylesheet" href="/static/lib/layui-v2.5.6/layui-v2.5.6/layui/css/layui.css">
    <script src="/static/lib/jquery-1.9.1.min.js"></script>
    <script src="/static/lib/layui-v2.5.6/layui-v2.5.6/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/lib/xadmin.js"></script>

</head>
<body>
    <!-- 顶部开始 -->
    <div class="container">
        <div class="logo"><a _href="admin/goodsLst.html">供应商管理后台</a></div>
        <div class="left_open">
            <i class="layui-icon layui-icon-shrink-right" title="展开左侧栏"></i>
        </div>
        
        <ul class="layui-nav right" lay-filter="">
          <li class="layui-nav-item">
            <a href="javascript:;" class="nameInfo">未登录</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
              <!-- <dd><a onclick="x_admin_show('个人信息','http://www.baidu.com')">个人信息</a></dd> -->
              <dd><a href="/login">切换帐号</a></dd>
              <dd><a class="logout_btn">退出</a></dd>
            </dl>
          </li>
          <li class="layui-nav-item to-index"><a href="#">前台首页</a></li>
        </ul>
        
    </div>
    <!-- 顶部结束 -->
     <!-- 左侧菜单开始 -->
    <div class="left-nav">
      <div id="side-nav">
        <ul id="nav">
             <li >
                <a _href="/static/admin/Interface.html">
                  <i class="layui-icon layui-icon-home"></i>
                    <cite>主页</cite>
                </a>
            </li>
             
            <li>
              <a href="javascript:;">
                <i class="layui-icon layui-icon-component"></i>
                  <cite>供应商订单</cite>
                  <span class="nav_right"><i class="layui-icon layui-icon-left"></i></span>
              </a>
              <ul class="sub-menu">
                  <li>
                      <a _href="/static/admin/supplierOrderController.html">
                        <i class="layui-icon layui-icon-component"></i>
                          <cite>供应商订单管理</cite>
                      </a>
                  </li >
                  <li>
                    <a _href="/static/admin/Interface.html">
                      <i class="layui-icon layui-icon-component"></i>
                        <cite>取货界面</cite>
                    </a>
                </li >
              </ul>
          </li>
                        
          </ul>
      </div>
    </div>
    <!-- <div class="x-slide_left"></div> -->
    <!-- 左侧菜单结束 -->
    <!-- 右侧主体开始 -->
    <div class="page-content">
      <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
        <ul class="layui-tab-title">
          <li class="home"><i class="layui-icon">&#xe68e;</i>我的桌面</li>
        </ul>
        <div class="layui-tab-content">
          <div class="layui-tab-item layui-show">
              <iframe src='/static/admin/Interface.html' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
          </div>
        </div>
      </div>
  </div>
  <div class="page-content-bg"></div>
  <!-- 右侧主体结束 -->
    
</body>
<script>

    $(".logout_btn").on("click",function(){
        $.ajax({
            type: "get",
            url: "/logout",
            dataType: "json",
            success:function(data){
                if (data.code == 'success') {
                    //页面跳转
                    sessionStorage.removeItem("sessionName")
                    window.location.href = "/static/admin/supplierIndex.html";
                }else if(data.code == 'fail'){
                    layer.msg(data.msg)
                }
            }
        })
    })
</script>
</html>